package com.zhiyou100.video.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhiyou100.video.mapper.SubjectMapper;
import com.zhiyou100.video.model.Subject;
import com.zhiyou100.video.service.SubjectService;

@Service
@Transactional	
public class SubjectServiceImpl implements SubjectService {

	@Autowired
	private SubjectMapper subjectMapper;

	@Override
	public List<Subject> selectAll() {
		return subjectMapper.selectAll();
	}

	@Override
	public Subject selectById(Integer id) {
		return subjectMapper.selectById(id);
	}

		
}
